package com.ruoyi.base.service.impl;

import com.ruoyi.base.domain.BScore;
import com.ruoyi.base.mapper.BScoreMapper;
import com.ruoyi.base.service.IBScoreService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 得分Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-03-24
 */
@Service
public class BScoreServiceImpl implements IBScoreService
{
    @Autowired
    private BScoreMapper bScoreMapper;

    /**
     * 查询得分
     * 
     * @param scoreId 得分主键
     * @return 得分
     */
    @Override
    public BScore selectBScoreByScoreId(Long scoreId)
    {
        return bScoreMapper.selectBScoreByScoreId(scoreId);
    }

    /**
     * 查询得分列表
     * 
     * @param bScore 得分
     * @return 得分
     */
    @Override
    public List<BScore> selectBScoreList(BScore bScore)
    {
        return bScoreMapper.selectBScoreList(bScore);
    }

    /**
     * 新增得分
     * 
     * @param bScore 得分
     * @return 结果
     */
    @Override
    public int insertBScore(BScore bScore)
    {
        return bScoreMapper.insertBScore(bScore);
    }

    /**
     * 修改得分
     * 
     * @param bScore 得分
     * @return 结果
     */
    @Override
    public int updateBScore(BScore bScore)
    {
        return bScoreMapper.updateBScore(bScore);
    }

    /**
     * 批量删除得分
     * 
     * @param scoreIds 需要删除的得分主键
     * @return 结果
     */
    @Override
    public int deleteBScoreByScoreIds(Long[] scoreIds)
    {
        return bScoreMapper.deleteBScoreByScoreIds(scoreIds);
    }

    /**
     * 删除得分信息
     * 
     * @param scoreId 得分主键
     * @return 结果
     */
    @Override
    public int deleteBScoreByScoreId(Long scoreId)
    {
        return bScoreMapper.deleteBScoreByScoreId(scoreId);
    }
}
